#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int len1, k1, len2, k2;
    cin >> len1 >> k1 >> len2 >> k2;

    // Handle cases where base is 1
    if (k1 == 1 || k2 == 1) {
        if (k1 == 1 && k2 == 1) {
            cout << "=" << endl;
        }
        else if (k1 == 1) {
            cout << "<" << endl;
        }
        else {
            cout << ">" << endl;
        }
        return 0;
    }

    // Calculate logarithms using long double for higher precision
    long double log_k1 = logl(k1);
    long double log_k2 = logl(k2);
    long double val1 = len1 * log_k1;
    long double val2 = len2 * log_k2;

    const long double EPS = 1e-12;
    long double diff = val1 - val2;

    if (diff > EPS) {
        cout << ">" << endl;
    }
    else if (diff < -EPS) {
        cout << "<" << endl;
    }
    else {
        cout << "=" << endl;
    }

    return 0;
}